#include <54func.h>
#include <workflow/WFFacilities.h>
static WFFacilities::WaitGroup gWaitGroup(2); 
// 阻塞主线程，直到按下ctrl+c
void handler(int signum){
    printf("signum = %d\n", signum);
    gWaitGroup.done(); //计数器减一
}
int main(){
    signal(SIGINT,handler);
    gWaitGroup.wait(); // 等待直到计数器为0
}
